package com.jlz.beans.user;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import com.julewa.db.DB;
import com.julewa.db.Entity;

/*
 * 这个是专用于处理usercode的,
 * 因为允许一个人拥有多个账户名
 * 
 * 只允许通过账户名登录修改密码等
 * 
 * 专用于登录处理
 */

@DB.USECACHE
@Component @Scope(Entity.SCOPE)
public class LinkBean {
	//电子方式主要有 本站,手机,传真,家庭电话,办公电话,电子邮件,qq等
	@DB.KEY int siteId;//0 - 9表示our site, 10 ~ 20表示手机号码,
	@DB.KEY String code;
	@DB.COLUMN Long userId = null;
	@DB.COLUMN String password = null;
	@DB.COLUMN int state;//是否被锁定等.
	
	//
	public Long getUserId() {
		return userId;
	}
	public void setUserId(Long userId) {
		this.userId = userId;
	}
	public int getSiteId() {
		return siteId;
	}
	public void setSiteId(int siteId) {
		this.siteId = siteId;
	}
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	
	public int getState() {
		return state;
	}
	public void setState(int state) {
		this.state = state;
	}
	
}
